package com.wn.controller;

import com.wn.entity.User;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.web.bind.annotation.*;

import java.util.HashMap;
import java.util.Map;

@RestController
@RequestMapping("/prop")
public class Properties1Controller {

    @Value("${app.host}")
    private String host;
    @Value("${app.port}")
    private Integer port;


    @GetMapping
    public Map<String, Object> search() {
        Map<String, Object> map = new HashMap<>();
        map.put("host", host);
        map.put("port", port);
        return map;
    }

}